Skip to content

Conversation

@singalsu
Copy link
Collaborator

No description provided.

@singalsu singalsu requested a review from udaymb October 16, 2025 16:24
@singalsu
Copy link
Collaborator Author

Note: To add formats to DMIC need the kernel patch thesofproject/linux#5559

@singalsu singalsu force-pushed the tplg_sdw_add_float_u8 branch from bdadf7b to 7ebe860 Compare October 29, 2025 12:57
@singalsu singalsu marked this pull request as ready for review October 29, 2025 13:15
Copilot AI review requested due to automatic review settings October 29, 2025 13:15
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for additional PCM audio formats (U8 and FLOAT_LE) to the Intel SoundWire topology configuration by introducing a new PCM_FORMAT_ALL build option. When enabled, the topology supports 5 audio formats instead of the default 3 (S16_LE, S24_LE, S32_LE, U8, FLOAT_LE).

  • Introduces PCM_FORMAT_ALL configuration option with default value false
  • Conditionally adds U8 and FLOAT_LE format support across all relevant audio components
  • Adds new development topology target sof-ptl-rt721-4ch-allfmt with extended format support enabled

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tools/topology/topology2/include/common/common_definitions.conf Defines new PCM_FORMAT_ALL configuration option
tools/topology/topology2/platform/intel/sdw-jack-generic.conf Adds conditional format support for jack audio components
tools/topology/topology2/platform/intel/sdw-dmic-generic.conf Adds conditional format support for SoundWire DMIC components
tools/topology/topology2/platform/intel/sdw-amp-generic.conf Adds conditional format support for SoundWire amplifier components
tools/topology/topology2/platform/intel/dmic-generic.conf Adds conditional format support for generic DMIC components
tools/topology/topology2/platform/intel/deep-buffer.conf Adds conditional format support for deep buffer playback
tools/topology/topology2/development/tplg-targets.cmake Adds new RT721 topology target with all formats enabled

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

]
}
"false" {
num_output_audio_formats 1
Copy link

Copilot AI Oct 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed line that sets num_output_audio_formats to 1, but this value is still needed when PCM_FORMAT_ALL is false. The conditional logic should preserve this line in the false branch.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong. Every output format definition contains now the num_output_audio_formats 1 for PCM_FORMAT_ALL false.

@lgirdwood
Copy link
Member

@singalsu looks like some indentation update is needed.

@singalsu
Copy link
Collaborator Author

singalsu commented Nov 3, 2025

@singalsu looks like some indentation update is needed.

Yep, I wish there would be an emacs mode for topology .conf to make changes like this less effort.

@singalsu singalsu force-pushed the tplg_sdw_add_float_u8 branch from 7ebe860 to 8e78ff8 Compare November 3, 2025 10:06
@singalsu singalsu requested a review from Copilot November 3, 2025 10:11
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This patch adds option to add the float and 8-bit unsigned
format to SDW jack playback and capture. The formats are
added only if PCM_FORMAT_ALL is set to true. The default
value in common_definitions.conf if false.

Signed-off-by: Seppo Ingalsuo <[email protected]>
This patch adds option to add float and unsigned 8-bit playback
formats to deep buffer if PCM_FORMAT_ALL is set to true.

Signed-off-by: Seppo Ingalsuo <[email protected]>
This patch adds option to add float and unsigned 8-bit playback
formats to SDW speaker if PCM_FORMAT_ALL is set to true.

Signed-off-by: Seppo Ingalsuo <[email protected]>
This patch adds option to add float and unsigned 8-bit capture
formats to SDW microphones if PCM_FORMAT_ALL is set to true.

Signed-off-by: Seppo Ingalsuo <[email protected]>
This patch adds option to add float and unsigned 8-bit capture
formats to PCH DMIC if PCM_FORMAT_ALL is set to true.

Signed-off-by: Seppo Ingalsuo <[email protected]>
This patch duplicates from production topologies the PTL ALC721
topology into development directory and adds to all PCMs
the FLOAT_LE and U8 formats.

Signed-off-by: Seppo Ingalsuo <[email protected]>
@singalsu singalsu force-pushed the tplg_sdw_add_float_u8 branch from 8e78ff8 to f260468 Compare November 5, 2025 09:58
@singalsu
Copy link
Collaborator Author

singalsu commented Nov 5, 2025

No changes, rebase to restart CI.

@kv2019i kv2019i merged commit 1067470 into thesofproject:main Nov 6, 2025
37 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants